package eclipse.lib.map;

public class Layer
{
	private int tileSheet[][];
	private int tileX[][];
	private int tileY[][];
	private String script[][];
	private float red;
	private float green;
	private float blue;
	private boolean opaque;
	private boolean fogEffect;
	private boolean lightEffect;
	private int width;
	private int height;
	private int offsetX;
	private int offsetY;
	private int offsetZ;
	public void make(int nWidth, int nHeight)
	{
		width 		= nWidth;
		height 		= nHeight;
		tileSheet	= new int[width][height];
		tileX		= new int[width][height];
		tileY		= new int[width][height];
		script		= new String[width][height];
		for(int x = 0; x < width; x++)
		{
			for(int y = 0; y < height; y++)
			{
				script[x][y] = "";
				tileSheet[x][y] = 0;
				tileX[x][y]		= 0;
				tileY[x][y]		= 0;
				script[x][y]	= "";
			}
		}
	}
	public int getMaxX()
	{
		return width;
	}
	public int getMaxY()
	{
		return height;
	}
	public String getScript(int nWidth, int nHeight)
	{
		return script[nWidth][nHeight];
	}
	public void setScript(int nWidth, int nHeight, String nScript)
	{
		script[nWidth][nHeight] = nScript;
	}
	public void setTileSheet(int nWidth, int nHeight, int nTileSheet)
	{
		tileSheet[nWidth][nHeight] = nTileSheet;
	}
	public int getTileSheet(int nWidth, int nHeight)
	{
		return tileSheet[nWidth][nHeight];
	}
	public void setTileX(int nWidth, int nHeight, int nTileX)
	{
		tileX[nWidth][nHeight] = nTileX;
	}
	public int getTileX(int nWidth, int nHeight)
	{
		return tileX[nWidth][nHeight];
	}
	public void setTileY(int nWidth, int nHeight, int nTileY)
	{
		tileY[nWidth][nHeight] = nTileY;
	}
	public int getTileY(int nWidth, int nHeight)
	{
		return tileY[nWidth][nHeight];
	}
	public void setColor(float nRed, float nGreen, float nBlue)
	{
		red 	= nRed;
		green 	= nGreen;
		blue	= nBlue;
	}
	public float getRed()
	{
		return red;
	}
	public float getBlue()
	{
		return blue;
	}
	public float getGreen()
	{
		return green;
	}
	public void setOpaque(boolean value)
	{
		opaque = value;
	}
	public boolean getOpaque()
	{
		return opaque;
	}
	public void setFogEffect(boolean value)
	{
		fogEffect = value;
	}
	public boolean getFogEffect()
	{
		return fogEffect;
	}
	public void setLightEffect(boolean value)
	{
		lightEffect = value;
	}
	public boolean getLightEffect()
	{
		return lightEffect;
	}
	public int getOffsetX()
	{
		return offsetX;
	}
	public int getOffsetY()
	{
		return offsetY;
	}
	public void setOffsetX(int value)
	{
		offsetX = value;
	}
	public void setOffsetY(int value)
	{
		offsetY = value;
	}
	public void setHeight(int value)
	{
		offsetZ = value;
	}
	public int getHeight()
	{
		return offsetZ;
	}
}
